Skip to content

[Dependency Scanning] Bridge Clang dependency scanner results on-demand #83600

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

artemcm
Copy link
Contributor

@artemcm artemcm commented Aug 7, 2025

#83050 changed the behavior to query every Clang module identifier imported from Swift, even for modules which may have previously been discovered as transitive dependencies of another query. This means we now have a lot of results coming in from Clang scanner queries which are redundant, and we bridge them all, all of the time, which adds up to a substantial amount of time.

Instead of always bridging all of the discovered modules of all of the queries, only do so for modules which have not already been cached at the time we record query results.

@artemcm
Copy link
Contributor Author

artemcm commented Aug 7, 2025

@swift-ci smoke test

Instead of always bridging all of the discovered modules of all of the queries, only do so for modules which are not already cached
@artemcm artemcm force-pushed the NoRedundantClangDepBridging branch from f345188 to 4876b2f Compare August 7, 2025 22:28
@artemcm
Copy link
Contributor Author

artemcm commented Aug 7, 2025

@swift-ci smoke test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant